package com.iflysse.controller;

import com.iflysse.pojo.vo.common.CommonVoResp;
import com.iflysse.pojo.vo.req.ResourceIdVoReq;
import com.iflysse.pojo.vo.req.StudentChapterIdVoReq;
import com.iflysse.pojo.vo.req.StudentLearnRecordVoReq;
import com.iflysse.pojo.vo.resp.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/studentLearnResource")
@Api(value = "学生端资源学习的接口")
public class StudentLearnResourceController {

    /**
     * 添加资源学习记录
     */
    @PostMapping("/addLearnResource")
    @ApiOperation("添加资源学习记录")
    public CommonVoResp addLearnResource(StudentLearnRecordVoReq studentLearnRecordVoReq) {

        CommonVoResp commonVoResp = new CommonVoResp();
        return commonVoResp;
    }


    /**
     * 根据章编号加载资源学习列表
     */
    @PostMapping("/loadStudentLearnResource")
    @ApiOperation("根据章编号加载资源学习列表")
    public StudentLearnResourceListVoResp loadStudentLearnResource(StudentChapterIdVoReq studentChapterIdVoReq) {
        StudentLearnResourceListVoResp studentLearnResourceListVoResp = new StudentLearnResourceListVoResp();
        return studentLearnResourceListVoResp;
    }


    /**
     * 根据资源编号查询html 网页学习资源
     */
    @PostMapping("/learnHtmlResource")
    @ApiOperation("根据资源编号查询html 网页学习资源")
    public ResourceHtmlVoResp learnHtmlResource(ResourceIdVoReq resourceIdVoReq) {

        ResourceHtmlVoResp resourceHtmlVoResp = new ResourceHtmlVoResp();
        return resourceHtmlVoResp;
    }

    /**
     * 学生端学习 练习的接口
     */
    @PostMapping("/learnTestResource")
    @ApiOperation("学生端学习练习的接口")
    public ResourceTestVoResp learnTestResource(ResourceIdVoReq resourceIdVoReq) {

        ResourceTestVoResp resourceTestVoResp = new ResourceTestVoResp();
        return resourceTestVoResp;

    }


    /**
     * 学生端学习 文档视频 接口
     */
    @PostMapping("/learnDocAndVideoResource")
    @ApiOperation("学生端学习文档视频接口")
    public ResourceDocAndVideoVoResp learnDocAndVideoResource(ResourceIdVoReq resourceIdVoReq) {

        ResourceDocAndVideoVoResp resourceDocAndVideoVoResp = new ResourceDocAndVideoVoResp();

        return resourceDocAndVideoVoResp;
    }

}
